explain mathematical modelling of electrical systems